package castleContent;

public class Barbarian extends Unit{
	private static final int DEFAULT_FOOD_COST = 150;
	private static final int BARBARIAN_DEFAULT_HEALTH = 10;
	private static final int BARBARIAN_DEFAUL_DAMAGE = 2;
	
	public Barbarian() {
		setAttackDamage(BARBARIAN_DEFAUL_DAMAGE);
		setHealthPoints(BARBARIAN_DEFAULT_HEALTH);
		setFoodCost(DEFAULT_FOOD_COST);		
	}
	
	public Barbarian(int adLevel, int hpLevel) {
		setAdLevel(adLevel);
		setHpLevel(hpLevel);
		setAttackDamage(BARBARIAN_DEFAUL_DAMAGE);
		setHealthPoints(BARBARIAN_DEFAULT_HEALTH);
		setFoodCost(DEFAULT_FOOD_COST);
		
		//Get AD up to level
		for(int currentLevel = 1; currentLevel < getAdLevel(); currentLevel++) {
			upgradeAD();
		}
		
		// get HP up to level
		for(int currentLevel = 1; currentLevel < getHpLevel(); currentLevel++) {
			upgradeHP();
		}
	}

}
